package indi.zhifa.study2024.nbr.gen.busy.consign.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import indi.zhifa.core.mpenhance.entity.annotations.ZfDbService;
import indi.zhifa.core.mpenhance.service.impl.ZfDbServiceImpl;
import indi.zhifa.study2024.nbr.gen.busy.consign.mapper.GenConsignDetailSimpleMapper;
import indi.zhifa.study2024.nbr.gen.busy.consign.service.IGenConsignDetailSimpleDbService;
import indi.zhifa.study2024.nbr.gen.busy.consign.entity.GenConsignDetailSimpleEntity;

import java.util.List;

/**
 * <p>
 * 销售单子表，没有优化 服务实现类
 * </p>
 *
 * @author 织法
 * @since 2024-09-16
 */
@ZfDbService(name="ConsignDetailSimpleEntity")
public class GenConsignDetailSimpleDbServiceImpl extends ZfDbServiceImpl<GenConsignDetailSimpleMapper, GenConsignDetailSimpleEntity> implements IGenConsignDetailSimpleDbService {

    @Override
    public List<GenConsignDetailSimpleEntity> listByBillId(Long pId) {
        LambdaQueryWrapper<GenConsignDetailSimpleEntity> wrapper = Wrappers.<GenConsignDetailSimpleEntity>lambdaQuery()
                .eq(GenConsignDetailSimpleEntity::getBillId, pId);
        return list(wrapper);
    }

}
